package fr.aracore.domotique.zapi.model.impl;

import fr.aracore.domotique.zapi.model.Sensor;

public class StaSensorDescriptor extends SensorDescriptor {


	@Override
	public String tag() {
		return "sta";
	}

	@Override
	public String libelle() {
		return "status";
	}

	@Override
	public String stateDescriptionForSensor(Sensor sensor) {
		boolean etat="ON".equals(sensor.value());
		return etat?"ON":"OFF";
	}

}
